home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************
- //
- // this file is (c) '94-'96 Niklas Beisert
- //
- // this file is part of the cubic player development kit.
- // you may only use/modify/spread this file under the terms stated
- // in the cubic player development kit accompanying documentation.
- //
- //***************************************************************************
-
- #ifndef __MBINFILE_H
- #define __MBINFILE_H
-
- #include "binfile.h"
-
- class mbinfile : public binfile
- {
- protected:
- char *filebuf;
-
- long *flen;
- void **fbuf;
- long fbuflen;
- int fleninc;
- int freemem;
-
- public:
- mbinfile();
-
- enum { openro=0, openrw=1, openfree=2 };
-
- int open(void *buf, long len, int type);
- int opencs(void *&buf, long &len, int inc);
- virtual void close();
-
- virtual long read(void *buf, long len);
- virtual long write(const void *buf, long len);
- virtual long seek(long pos);
- virtual long chsize(long pos);
- };
-
- #endif
-